package com.skyblue.service.impl;

import com.skyblue.dao.DefaultMapper;
import com.skyblue.entity.RealTimeView;
import com.skyblue.entity.RealTime;
import com.skyblue.entity.Security;
import com.skyblue.service.DefaultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by toutou on 2018/5/27.
 */
@Service
public class DefaultServiceImpl implements DefaultService {
    @Autowired
    private DefaultMapper defaultMapper;

    public List<RealTimeView> queryBasic(Integer yuzhi) {
        return defaultMapper.queryBasic(yuzhi);
    }

    @Override
    public List<Security> queryBylocationkey(String sublocation) {
        return defaultMapper.queryBylocationkey(sublocation);
    }

    public int modifyBySecurity(Security security) {
        return defaultMapper.modifyBySecurity(security);
    }

    @Override
    public int modifyByLocationKey(Security security) {
        return defaultMapper.modifyByLocationKey(security);
    }

    @Override
    public int modifyBySubLocation(RealTime realTime) {
        return defaultMapper.modifyBySubLocation(realTime);
    }

    @Override
    public List<Security> queryAllSecurity() {
        return defaultMapper.queryAllSecurity();
    }

    @Override
    public List<Security> queryBySecurity(String security) {
        return defaultMapper.queryBySecurity(security);
    }

    @Override
    public List<Security> querySecurityMsg() {
        return defaultMapper.querySecurityMsg();
    }

    @Override
    public List<RealTime> queryAllSubBykey(Integer locationkey) {
        return defaultMapper.queryAllSubBykey(locationkey);
    }

    @Override
    public int addNewSublocation(RealTime realTime) {
        return defaultMapper.addNewSublocation(realTime);
    }

    @Override
    public int querySub(String newSub) {
        return defaultMapper.querySub(newSub);
    }

    @Override
    public int delectSubBySub(String sublocation) {
        return defaultMapper.delectSubBySub(sublocation);
    }

    @Override
    public List<RealTimeView> queryBySub(String sub) {
        return defaultMapper.queryBySub(sub);
    }

    @Override
    public int addSec(Security security) {
        return defaultMapper.addSec(security);
    }
}
